package A04Math;

public class Test {
    public static void main(String[] args) {
        System.out.println(Math.max(1,2));//最大值
        System.out.println(Math.round(1.3));//四舍五入
        System.out.println(Math.round(1.7));
        System.out.println(Math.abs(1.2));//绝对值
        System.out.println(Math.ceil(1.3));//向上取整
        System.out.println(Math.floor(1.7));//向下取整
        System.out.println(Math.pow(2,3));//幂函数
        double db=Math.random();//生成随机double小数，数值从零到一
    }
}
